package fansite.controller;

import java.util.ArrayList;
import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import fansite.model.service.FansiteService;


public class FansiteController extends MultiActionController{
	private FansiteService service;
	
	public void setFansiteService(FansiteService service){
		this.service = service;
	}
	public ModelAndView searchFansite(HttpServletRequest request, HttpServletResponse response)throws Exception{
		ArrayList list = service.searchFansite();
		HashMap map = new HashMap();
		map.put("list", list);
		ModelAndView mv = new ModelAndView("fansite","map",map);
		return mv;
	}	
}
